3.1.69 \(\int \frac {\cos (x)}{\sqrt {4-\cos ^2(x)}} \, dx\) [69]

Optimal. Leaf size=9 \[ \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \]

[Out]

arcsinh(1/3*sin(x)*3^(1/2))

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {3265, 221} \begin {gather*} \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[x]/Sqrt[4 - Cos[x]^2],x]

[Out]

ArcSinh[Sin[x]/Sqrt[3]]

Rule 221

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rule 3265

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Cos[e + f*x], x]}, Dist[-ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b - b*ff^2*x^2)^p, x], x, Cos
[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps

\begin {align*} \int \frac {\cos (x)}{\sqrt {4-\cos ^2(x)}} \, dx &=\text {Subst}\left (\int \frac {1}{\sqrt {3+x^2}} \, dx,x,\sin (x)\right )\\ &=\sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 9, normalized size = 1.00 \begin {gather*} \sinh ^{-1}\left (\frac {\sin (x)}{\sqrt {3}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[x]/Sqrt[4 - Cos[x]^2],x]

[Out]

ArcSinh[Sin[x]/Sqrt[3]]

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(52\) vs. \(2(8)=16\).
time = 0.38, size = 53, normalized size = 5.89

method result size
default \(-\frac {\sqrt {-\left (\cos ^{2}\left (x \right )-4\right ) \left (\sin ^{2}\left (x \right )\right )}\, \ln \left (-\left (\sin ^{2}\left (x \right )\right )+\sqrt {\sin ^{4}\left (x \right )+3 \left (\sin ^{2}\left (x \right )\right )}-\frac {3}{2}\right )}{2 \sin \left (x \right ) \sqrt {4-\left (\cos ^{2}\left (x \right )\right )}}\) \(53\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)/(4-cos(x)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

-1/2*(-(cos(x)^2-4)*sin(x)^2)^(1/2)*ln(-sin(x)^2+(sin(x)^4+3*sin(x)^2)^(1/2)-3/2)/sin(x)/(4-cos(x)^2)^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.47, size = 8, normalized size = 0.89 \begin {gather*} \operatorname {arsinh}\left (\frac {1}{3} \, \sqrt {3} \sin \left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)/(4-cos(x)^2)^(1/2),x, algorithm="maxima")

[Out]

arcsinh(1/3*sqrt(3)*sin(x))

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs. \(2 (8) = 16\).
time = 0.39, size = 39, normalized size = 4.33 \begin {gather*} \frac {1}{4} \, \log \left (8 \, \cos \left (x\right )^{4} - 4 \, {\left (2 \, \cos \left (x\right )^{2} - 5\right )} \sqrt {-\cos \left (x\right )^{2} + 4} \sin \left (x\right ) - 40 \, \cos \left (x\right )^{2} + 41\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)/(4-cos(x)^2)^(1/2),x, algorithm="fricas")

[Out]

1/4*log(8*cos(x)^4 - 4*(2*cos(x)^2 - 5)*sqrt(-cos(x)^2 + 4)*sin(x) - 40*cos(x)^2 + 41)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos {\left (x \right )}}{\sqrt {- \left (\cos {\left (x \right )} - 2\right ) \left (\cos {\left (x \right )} + 2\right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)/(4-cos(x)**2)**(1/2),x)

[Out]

Integral(cos(x)/sqrt(-(cos(x) - 2)*(cos(x) + 2)), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 29 vs. \(2 (8) = 16\).
time = 0.44, size = 29, normalized size = 3.22 \begin {gather*} \frac {1}{2} \, \sqrt {\sin \left (x\right )^{2} + 3} \sin \left (x\right ) - \frac {3}{2} \, \log \left (\sqrt {\sin \left (x\right )^{2} + 3} - \sin \left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)/(4-cos(x)^2)^(1/2),x, algorithm="giac")

[Out]

1/2*sqrt(sin(x)^2 + 3)*sin(x) - 3/2*log(sqrt(sin(x)^2 + 3) - sin(x))

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.11 \begin {gather*} \int \frac {\cos \left (x\right )}{\sqrt {4-{\cos \left (x\right )}^2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)/(4 - cos(x)^2)^(1/2),x)

[Out]

int(cos(x)/(4 - cos(x)^2)^(1/2), x)

________________________________________________________________________________________